﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PetaPoco;

namespace QuickLifeHall.DAL
{
    public interface IRepository<T> where T : class, new()
    {
        T Get(object id);
        List<T> GetList(Sql sql);
        void Insert(T entity);
        void Update(T entity);
        void Delete(object id);

        Page<T> Page(long page, long rows, Sql sql);
    }
}